package kevin.study.zephyr.domain.dao.db4o;

import kevin.study.zephyr.domain.dao.IDAOFactory;
import kevin.study.zephyr.domain.dao.IGenericDAO;

/**
 * @author Kevin.Huang
 * @createtime 2007-12-12
 */
public final class DB4ODAOFactory implements IDAOFactory {

	public < K > IGenericDAO< K > createDAO(Class< K > clazz) {
		DB4ODAO< K > dao = new DB4ODAO< K >();
		dao.setPersistentClass(clazz);
		dao.setDb(DB4ODBManager.getDefault().getDB());
		return dao;
	}

}
